DX11 GET OBJECT SECTOR X

Retrieves the X coordinate of the sector that the given object currently resides in.
Sectors are used as a means to group multiple objects together and cull them early if the sector volume (which is a box) is not visible by the camera.
Sectors consist of 3x3 sub-sectors, and the outermost of these are shared between sectors to account for objects that would technically be present in more than
one adjacent sector (such as spanning over the edges of one).
This function is mainly intended for debugging purposes as a means of gathering some extra statistics, since the sector engine and sector updates are self-contained
within the Ziggurat engine itself.

  Syntax
Return Integer = DX11 GET OBJECT SECTOR X(object)
  Parameters
object
Dword
The object to get the current world sector's X coordinate of.

  Returns

The X coordinate of the specified object's world sector. A value of -1 will be returned if the object is in the catch-all sector.

  See also

OBJECT Functions Menu
DX11 Function Categories